import App from './App'
import http from './utils/https.js'
// 导入并挂载全局的分享方法
import share from '@/utils/share.js'
import store from './store/index.js';
// #ifndef VUE3
import Vue from 'vue'
// 引入全局uView
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// #ifdef MP
// 引入uView对小程序分享的mixin封装
const mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)
// #endif
Vue.config.productionTip = false;
//参数序列化和解析库
import qs from 'qs';
Vue.prototype.$qs = qs; //即可直接使用  this.$qs
Vue.prototype.request = http;
App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif